package com.quiz.bis.service;

import com.quiz.bis.domain.bo.ExamSubgroupAddBo;
import com.quiz.bis.domain.bo.ExamSubgroupMemberBo;
import com.quiz.bis.domain.bo.ExamSubgroupUpdateBo;
import com.quiz.common.core.domain.R;
import com.quiz.common.mybatis.core.page.PageQuery;
import com.quiz.common.mybatis.core.page.TableDataInfo;

import java.util.List;

/**
 * 分组服务接口
 * @author ahuan
 */
public interface IExamSubgroupService {
    TableDataInfo<?> listSubgroups(Long groupId);

    R<Long> addSubgroup(ExamSubgroupAddBo bo);

    R<Void> updateSubgroup(ExamSubgroupUpdateBo bo);

    R<Void> deleteSubgroups(List<Long> ids);

    TableDataInfo<?> listSubgroupMembers(Long subgroupId, PageQuery pageQuery, String searchKey);

    R<Void> addSubgroupMembers(ExamSubgroupMemberBo bo);

    R<Void> removeSubgroupMembers(ExamSubgroupMemberBo bo);
}